from aiohttp import web
from polls.routes import set_route
from config.loadyaml import load_yaml_config

app = web.Application()
conf = load_yaml_config()
app['config'] = conf

set_route(app)
web.run_app(app=app,host=conf['server']['addr'],port=8963)